import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryCarryContactList = async (json) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/queryCarryContactList", json);
  return data;
};

export const queryCarryContacts = async (json) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/queryCarryContacts", json);
  return data;
};
export const queryHighCarryContacts = async (json) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/queryHighCarryContacts", json);
  return data;
};



export const updateCarryContact = async (json) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/updateCarryContact", json);
  return data;
};


export const addCarryContact = async (json) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/addCarryContact", json);
  return data;
};



export const delCarryContact = async (json) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/delCarryContact", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "cCarryContactApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}